package org.springframework.boot.web.server;

import java.security.KeyStore;

/**
 * @author automannn
 * @time 2020/11/23 15:16
 */
public interface SslStoreProvider {
    /**
     * Return the key store that should be used.
     * @return the key store to use
     * @throws Exception on load error
     */
    KeyStore getKeyStore() throws Exception;

    /**
     * Return the trust store that should be used.
     * @return the trust store to use
     * @throws Exception on load error
     */
    KeyStore getTrustStore() throws Exception;
}
